package com.ruoyi.od.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章审核对象 od_user_article
 *
 * @author 榛子
 * @date 2023-07-04
 */
public class OdUserArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
    @Excel(name = "文章ID")
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 文章图片 */
    @Excel(name = "文章图片")
    private String thumbnail;

    /** 文章作者 */
    @Excel(name = "文章作者")
    private String author;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long support;

    /** 评论数 */
    @Excel(name = "评论数")
    private Long comment;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {


        return content;
    }
    public void setCreated(Date created)
    {
        this.created = created;
    }

    public Date getCreated()
    {
        return created;
    }
    public void setThumbnail(String thumbnail)
    {
        this.thumbnail = thumbnail;
    }

    public String getThumbnail()
    {
        return thumbnail;
    }
    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getAuthor()
    {
        return author;
    }
    public void setSupport(Long support)
    {
        this.support = support;
    }

    public Long getSupport()
    {
        return support;
    }
    public void setComment(Long comment)
    {
        this.comment = comment;
    }

    public Long getComment()
    {

        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("created", getCreated())
                .append("thumbnail", getThumbnail())
                .append("author", getAuthor())
                .append("support", getSupport())
                .append("comment", getComment())
                .toString();
    }
}
